package org.summer.lawyer.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 订单子项对象 spu_order_item
 *
 * @author summer
 * @date 2024-06-22
 */
@Data
@TableName("spu_order_item")
public class SpuOrderItem  {


    /**
     * 主键ID
     */
    @TableId(value = "order_item_id", type = IdType.ASSIGN_ID)
    private Long orderItemId;



    /**
     * 订单ID
     */
    @TableField(value = "order_id")
    private Long orderId;



    /**
     * 商品ID
     */
    @TableField(value = "spu_id")
    private Long spuId;



    /**
     * 商品名称
     */
    @TableField(value = "spu_name")
    private String spuName;



    /**
     * 商品分类ID
     */
    @TableField(value = "category_id")
    private Long categoryId;



    /**
     * 商品分类名称
     */
    @TableField(value = "category_name")
    private String categoryName;



    /**
     * 下单用户ID
     */
    @TableField(value = "user_id")
    private Long userId;



    /**
     * 下单用户姓名
     */
    @TableField(value = "user_name")
    private String userName;



    /**
     * 商品主图片
     */
    @TableField(value = "spu_image")
    private String spuImage;



    /**
     * 商品价格(单位分）
     */
    @TableField(value = "spu_price")
    private Long spuPrice;



    /**
     * 商品数量
     */
    @TableField(value = "spu_count")
    private Long spuCount;



    /**
     * 商品总价(单位分）
     */
    @TableField(value = "spu_total_amount")
    private Long spuTotalAmount;

    /**
     * 附件
     */
    @TableField(value = "spu_file")
    private String spuFile;



    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

}
